$(document).ready(function(){
var galleryTop = new Swiper('.gallery-top', {
		autoplay: {
			delay: 3000,
			stopOnLastSlide: false,
			disableOnInteraction: false //更改此参数可以控制轮播是否在用户操作后重新启动
		},
		allowTouchMove:true,
		effect: 'coverflow',
		grabCursor: true,
		centeredSlides: true,
		slidesPerView: 'auto',
		coverflowEffect: {
			rotate: -35,
			stretch: 30,
			depth: 200,
			modifier: 1,
			slideShadows: false
		},
		spaceBetween: 20,
		loop: true,
		loopAdditionalSlides: 3,
	});
	var galleryThumbs = new Swiper('.gallery-thumbs', {
		allowTouchMove:true,
		spaceBetween: 0,
		slidesPerView: 3,
		touchRatio: 0.2,
		loop: true,
		loopAdditionalSlides: 3,
		slideToClickedSlide: true,
	});
	galleryTop.controller.control = galleryThumbs;
	galleryThumbs.controller.control = galleryTop;
})